<template>
	<view class="page">
		<view><text>12313</text></view>
		<pickers @address="pickersChangeLabel" @codeChange="pickersChangeCode" :defaultAddress="form.labelList">
			<view>地址：<text v-for="(item,index) in form.labelList" :key="index">{{item}}</text></view>
		</pickers>
	</view>
</template>

<script>
	import pickers from '@/components/ming-picker/ming-picker.vue';
	export default {
		components: {
			pickers
		},
		data() {
			return {
				form: {
					labelList: [],
					codeList: []
				}
			};
		},
		methods: {
			pickersChangeLabel(event) {
				console.log("event", event);
				// this.form.labelList = event.join('');
			},
			pickersChangeCode(event) {
				console.log("code", event);
				this.form.codeList = event;
			}
		}
	};
</script>

<style>
</style>
